<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<script>
function initFocus(_this){
	_this.value = "";
}
</script>
<title>客户信息</title>
</head>

<body>
<div id="wrap">
<div id="public_head"></div>
<div class="m_search">
<form method="get" name="search_patient" action=""><input type="hidden"
	name="c" value="patient" /> <input type="hidden" name="a" value="index" />
关键词 <input type="text" name="keyword" class="qi_text" value="姓名/身份证/手机号"
	onfocus="initFocus(this)"><input class="btn_search" name=""
	type="submit" value="" /></form>
</div>
<div class="m_content">
<table class="qi_table" width="0" border="0" cellpadding="0"
	cellspacing="1">
	<tr>
		<th>患者姓名</th>
		<th>性别</th>
		<th>联系电话</th>
		<th>年龄</th>
		<th>证件号码</th>
		<th>社保卡</th>
		<th>联系人</th>
		<th>联系人关系</th>
		<th>联系人电话</th>
		<th>操作</th>
	</tr>
              
              <?php 
              if ($rows) {
              	foreach ($rows as $row) {?>
              <tr>
		<td><?php echo $row['TRUE_NAME']?></td>
		<td><?php echo $row['SEX']?></td>
		<td><?php echo $row['PHONE']?></td>
		<td><?php echo ATools::getAge($row['BIRTH'])?></td>
		<td><?php echo $row['CARD']?></td>
		<td><?php echo $row['SOCIAL_CARD']?></td>
		<td><?php echo $row['LXR_NAME']?></td>
		<td><?php echo $row['RELATION']?></td>
		<td><?php echo $row['LXR_PHONE']?></td>
		<td>
		<!--<a href="index.php?c=patient&a=form&pid=<?php echo $row['PATIENT_ID']?>">修改</a>-->
		<a href="?c=demo&a=vipshow&n=<?php echo $row['TRUE_NAME']?>">查看</a>
		<a class="js_del_confirm" href="index.php?c=patient&a=del&pid=<?php echo $row ['PATIENT_ID']?>">删除</a></td>
	</tr>
              <?php
															}
														} else {
															?>
              <tr>
		<td colspan="10"><font color="red">客户列表为空</font></td>
	</tr>
              <?php }?>
              <tr>
		<td colspan="10"><?php echo $pager?></td>
	</tr>
</table>
</div>
</div>
</body>
</html>
<script src="js/jquery.js"></script>
<script src="/js/add_public_head.js" type="text/javascript"></script>